﻿@{
    ViewBag.Title = "_CustomProductBox.Mobile";
}
@using Nop.Web.Extensions
@model ProductOverviewModel
@using Nop.Web.Models.Catalog;
@using Nop.Core.Domain.Catalog;
@using System.Text.RegularExpressions;

@*
@{  //prepare "Add to cart" AJAX link
    string addtocartlink = "";
    if (Model.ProductPrice.ForceRedirectionAfterAddingToCart)
    {
        addtocartlink = Url.RouteUrl("AddProductToCart", new { productId = Model.Id, forceredirection = Model.ProductPrice.ForceRedirectionAfterAddingToCart });
    }
    else
    {
        addtocartlink = Url.RouteUrl("AddProductToCart", new { productId = Model.Id });
    }
}*@

    <ul data-role="listview" data-inset=”true” data-filter="false" data-theme="ｄ">
       <li><a href="@Url.RouteUrl("Store", new { storeId = Model.ProductStore.Id, SeName = Model.ProductStore.SeName })" target="_top">
       @if (Model.ProductStore.StorePictureModel != null)
       {
           <img alt="@Model.ProductStore.StorePictureModel.AlternateText" src="@Model.ProductStore.StorePictureModel.ImageUrl" title="@Model.ProductStore.Name" />
       }
       <h3>@Model.ProductStore.Name</h3>
       <!-- <div class="store-title">@Model.ProductStore.Name</div> -->
       </a>
       </li>
       <li>
          @* Best Seller Link *@
          @*@Html.ActionLink("Bestseller", "StoreAll", new { }, new { @class="button-grey"})*@
          @Html.ActionLink("Other Best Sellers", "StoreAll", new { }, new { @class="button-grey"})
              @{
              //+string+    
              }
       </li>
    </ul>

    @* (-) by Judes 2013-11-29 - Remove "add to cart link"*@
    @*@if (!Model.ProductPrice.DisableBuyButton)
    {
       <a href="@Url.RouteUrl("Product", new { SeName = Model.SeName })" onclick="AjaxCart.addproducttocart('@addtocartlink    '); return false;"><span class="icon-shopcart icon"></span>@(Model.ProductPrice.AvailableForPreOrder ? T("ShoppingCart.PreOrder") : T("ShoppingCart.AddToCart"))</a>
    }
    *@
             
    @* (-) by Judes 2013-11-29 - Remove second store link*@
    @*
    <a href="@Url.RouteUrl("Store", new { storeId = Model.ProductStore.Id, SeName = Model.ProductStore.SeName })" data-store="@Url.RouteUrl("Store", new { storeId = Model.ProductStore.Id, SeName = Model.ProductStore.SeName })" data-product="@Url.RouteUrl("Product", new { SeName = Model.SeName })" class="product-store-link">Store</a>
    *@